'use strict';
exports.main = async (event, context) => {
	//event为客户端上传的参数
	console.log('event : ', event)
	
	// 1.找数据库
	const db = uniCloud.database();
	// 2. 找数据表
	const account = db.collection('Account')
	// 3.插入数据
	 let res = account.add(event)
	 console.log("插入结果" +JSON.stringify(res));
	//返回数据给客户端
	return event
};
